# models/user.py
class User:
    def __init__(self, name, balance=0, points=0):
        self.name = name
        self.balance = balance
        self.points = points

    def deduct_balance(self, amount):
        self.balance -= amount

    def add_points(self, points):
        self.points += points
